package com.lnking.lnkingplace.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.lnking.starter.mybatis.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * <p>
 * 文创企业表
 * </p>
 *
 * @author zhangqt
 * @since 2022-10-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="CultureEnterprise对象", description="文创企业表")
public class CultureEnterprise extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "企业类型")
    private String enterpriseType;

    @ApiModelProperty(value = "企业名称")
    private String enterpriseName;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    private Boolean delFlag;

    @ApiModelProperty(value = "季度")
    private String season;

    @ApiModelProperty(value = "年")
    private Integer year;

    @ApiModelProperty(value = "增加值同比增速")
    private Float growSeason;

    @TableField(exist = false)
    @JsonIgnore
    private String strGrowSeason;


    public String getStrGrowSeason(){
        if(null != growSeason){
            return String.valueOf(growSeason);
        }
        return null;
    }


}
